package com.smxy.mall.service;

import com.smxy.mall.entity.News;
import com.smxy.mall.entity.NewsCat;
import com.smxy.mall.model.news.NewsCatRequest;
import com.smxy.mall.model.news.NewsRequest;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;

public interface NewsService {
    NewsCat save(NewsCatRequest newsCatRequest);
    List<NewsCat> catList(Integer pid);

    News save(NewsRequest newsRequest);
    News detail(Integer id);
    Page<News> newsList(Integer categoryId,Pageable pageable);
    Page<News> newsList(Pageable pageable);
}
